from django.db import models
from django.contrib.auth.models import User

EVENT_CHOICES = (
    ('I', 'Checkin'),
    ('O', 'Checkout'),
)

class Event(models.Model):
	user = models.ForeignKey(User)
	timestamp = models.DateTimeField(auto_now_add=True)
	eventType = models.TextField(max_length=1, choices=EVENT_CHOICES)
